﻿#This file loads all the resources that are loaded with the content manager.
#[Auto Loaded]
#Created: 12/11 - 2011
#By: Adam Lewenhaupt

import nt

Tiles = {}

def loadtexsfd(str, texdict):
    files = nt.listdir(str)
    print "From Directory: '%s'" % str
    print "Loading files:"
    for file in files:
        if file.Split('.')[1] == "png":
            print file
            texdict[file.Split('.')[0]] = ltex(str + file)

cwd = nt.getcwd()
texpath = cwd[:cwd.index(r'Svn') + 4] + r"Textures\\"

Fonts['topMenuButton'] = Engine.Game.Content.Load[mxfg.SpriteFont]('topMenuButtonFont')

loadtexsfd(texpath + "Interface/", Textures)
loadtexsfd(texpath + "Tiles/", Tiles)

maps.Map.Device = GraphicsDevice